<%-- 
    Document   : A4
    Created on : 2014/8/5, 下午 03:52:57
    Author     : gjun
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%!
int x=5;

String sayHi(String name){
    
    return name +" Hi!";
}
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        x:<%= x %> <br>
        
        <%= sayHi("Tom") %> <br>
        <%= sayHi("Mary") %>
    </body>
</html>
